package com.jt.admin.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jt.admin.common.utils.PageUtils;
import com.jt.admin.common.utils.Query;

import com.jt.admin.domain.mapper.CottonMapper;
import com.jt.admin.domain.entity.CottonEntity;
import com.jt.admin.service.CottonService;


@Service("cottonService")
public class CottonServiceImpl extends ServiceImpl<CottonMapper, CottonEntity> implements CottonService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CottonEntity> page = this.page(
                new Query<CottonEntity>().getPage(params),
                new QueryWrapper<CottonEntity>()
        );

        return new PageUtils(page);
    }

}